using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DataModels.Models
{
    [Table("ErrMsgSMS")]
    public partial class ErrMsgSM
    {
        [Key]
        public int ReceivedSMSNo { get; set; }

        [StringLength(50)]
        public string SenderNum { get; set; }

        [StringLength(1000)]
        public string TxtDetails { get; set; }
        public Nullable<System.DateTime> DateReceived { get; set; }

        [StringLength(50)]
        public string FacCode { get; set; }
        public Nullable<int> Year { get; set; }
        public Nullable<int> Period { get; set; }
        public Nullable<int> RepID { get; set; }

        [StringLength(1000)]
        public string ErrMsg { get; set; }
        public Nullable<bool> Deleted { get; set; }

        public Nullable<int> KnownReportingErrorId { get; set; }

        [ForeignKey("KnownReportingErrorId")]
        public virtual KnownReportingError KnownReportingError { get; set; }
    }
}
